<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员日记-<?php echo $cfg_sitename."-".$cfg_sysversion;?></title>
<meta property="xn:admins" content="583870616"/>
<meta property="wb:webmaster" content="ye-shi-li@qq.com">
<link href="templets/css/admin_css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/admin.js"></script>
</head>
<body>
<table width="98%" height="101" border="0" cellpadding="3" cellspacing="1" class="ye">
  <tr bgcolor="#666666">
    <td height="24" colspan="11" valign="middle"><font color="#FFFFFF">&nbsp;<strong>管理员日记</strong></font><a href="admin_record_ok.php?act=empty" class="spemail" onClick="javascript:return confirm('你是否要清空所有管理日记?')">清空日记</a></td>
  </tr>
  <tr bgcolor="#f5f5f5">
    <td width="7%" height="24" align="center" valign="middle">选择</td>
    <td width="13%" align="center" valign="middle">操作用户</td>
    <td width="43%" align="center" valign="middle">操作内容</td>
    <td width="16%" align="center" valign="middle">操作IP</td>
    <td width="15%" align="center" valign="middle">操作时间</td>
    <td width="6%" height="24" align="center" valign="middle">操作</td>
  </tr>
  <form name="form" method="post" action="admin_record_ok.php?act=delcheck">
  <?php
	foreach ($admin_list as $list){
  ?>
  <tr onMouseOver="this.style.background='#f5f5f5'" onMouseOut="this.style.background='#ffffff';"  bgcolor="#ffffff">
    <td align="center" valign="middle"><input type="checkbox" name="ck[]" id="ck[]" value="<?php echo $list['id'];?>" /></td>
    <td align="center" valign="middle"><?php echo $list['username'];?>(<?php echo get_rankadmin($list['uid']);?>)</td>
    <td align="center" valign="middle"><?php echo $list['title'];?></td>
    <td align="center" valign="middle"><?php echo $list['ip'];?></td>
    <td align="center" valign="middle"><?php echo $list['datetime'];?></td>
    <td align="center" valign="middle" class="caozuo">
   <a href="admin_record_ok.php?id=<?php echo $list['id']; ?>&act=del" onClick="javascript:return confirm('确实要删除吗?')" title="删除"><img src="templets/images/del.png" alt="删除" border="0" /></a>
    </td>
  </tr>
  <?php
  	}
  ?>
  <tr>
    <td height="24" colspan="11" bgcolor="#F8FCF6"><input type="button" name="button" class="del" value="选择" onclick="delcheck();" /><input type="submit" name="button" class="del" value="删除" onClick="javascript:return confirm('确实要删除吗?')"/><?php page($sqlstr,$page_size,"admin_record.php?field=".$_GET['field']."&keyword=".$_GET['keyword']."&page",$page);?></td>
  </tr>
  </form>
  <tr>
    <form name="myform" method="get" action="admin_record.php">
    <td height="24" colspan="11" bgcolor="#F8FCF6" align="center"><select name="field" class="select">
     <option value="" <?php if($field=='') echo 'selected';?>>全部</option>
     <option value="username" <?php if($field=='username') echo 'selected';?>>访问用户</option>
     <option value="title" <?php if($field=='title') echo 'selected';?>>访问内容</option>
     <option value="ip" <?php if($field=='ip') echo 'selected';?>>访问IP</option>
     <option value="datetime" <?php if($field=='datetime') echo 'selected';?>>访问时间</option>
    </select>&nbsp;<input type="text" class="yeshili" value="<?php echo $keyword;?>" name="keyword" placeholder="请输入搜索的关键字！"/>&nbsp;<input type="submit" class="button" value="搜索" id="button"></td>
  </form>
  </tr>
  </form>
</table>
</body>
</html>